Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Given the following new-style C++ program, show how to change it into its old-style form.#include using namespace std;into f(into a);into main(){cout << f(10);return 0;}int f(int...

Given the following new-style C++ program, show how to change it into its old-style form.
#include
using namespace std;
into f(into a);
into main()
{
cout << f(10);
return 0;
}
int f(int a)
{
return a * 3.1416;
}

Answers


Davis
#include
int f(int a);
int main()
{
cout << f(10);
return 0;
}
int f(int a)
{
return a * 3.1416;
}
Githiari answered the question on May 5, 2018 at 17:38

Answer Attachments

Exams With Marking Schemes

Related Questions